package com.example.warehousesystem_common.exception;


import com.example.warehousesystem_common.web.ServiceCode;
import lombok.Data;

/**
 * 业务异常
 */
@Data
public class ServiceException extends RuntimeException{

    private ServiceCode serviceCode;


    public ServiceException() {
        super();
    }

    public ServiceException(ServiceCode serviceCode,String message) {
        super(message);
        this.serviceCode = serviceCode;
    }
}
